import dashscope
from dashscope import Generation
from http import HTTPStatus
import json

def damoxing():
    response=Generation.call(
        model='ziya-llama-13b-v1',
        prompt='<human>:帮我写一份去西安的旅游计划\n<bot>:'
      )

    if response.status_code==HTTPStatus.OK:
        print(json.dumps(response, indent=4, ensure_ascii=False))
    else:
        print('Code: %d, status: %s, message: %s' % (response.status_code, response.code, response.message))

if __name__ == '__main__':
    damoxing()